[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
tolower() Convert 'c' To Lowercase, If Appropriate
#include <ctype.h>
int tolower(c);
int c; Character to be converted
tolower() converts 'c' to lowercase, if 'c' is an uppercase letter.
If 'c' is already lowercase, it remains unchanged.
Returns: The converted character 'c'. There is no error
return.
-------------------------------- Example ---------------------------------
The following statements convert strings to lowercase before printing
them.
#include <ctype.h>
#include <stdio.h>
char string[15] = "Alphabet Soup";
int x;
main()
{
for (x = 0; x < strlen(string); x++)
printf("%c",tolower(string[x]));
printf("\n");
}
See Also:
islower()
isupper()
_tolower()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson